<?php

declare(strict_types=1);
/**
 * This file is part of Hyperf.
 *
 * @link     https://www.hyperf.io
 * @document https://doc.hyperf.io
 * @contact  group@hyperf.io
 * @license  https://github.com/hyperf-cloud/hyperf/blob/master/LICENSE
 */

namespace App\Model;

use Hyperf\DbConnection\Model\Model as BaseModel;

abstract class Model extends BaseModel {
    public $timestamps = false;

    /** oss路径处理
     * @param $item
     */
    public function oss($item) {
        $this->$item = oss($this->$item);
    }

    /**
     * oss路径处理
     * @param $item
     */
    public function ossArray($item) {
        $this->$item = ossArray($this->$item);
    }
}
